//
//  SocialCollectionViewCellFirst.m
//  XYFMApp
//
//  Created by 岁变 on 16/9/20.
//  Copyright © 2016年 岁变. All rights reserved.
//

#import "SocialCollectionViewCellFirst.h"
#import "XYMacro.h"

@implementation SocialCollectionViewCellFirst

- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        _imageViewHeader = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"social_friend_top"]];
        [self.contentView addSubview:_imageViewHeader];
        
        _imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"no_data"]];
        [self.contentView addSubview:_imageView];
        
        _label = [[UILabel alloc] init];
        _label.text = @"暂未开通,敬请期待";
        _label.textColor = [UIColor lightGrayColor];
        _label.font = [UIFont systemFontOfSize:22];
        _label.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_label];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    _imageViewHeader.frame = CGRectMake(0, 0, SCREEN_WIDTH, 150 );
    _imageView.frame = CGRectMake(120, 300, SCREEN_WIDTH - 240, 150);
    _label.frame = CGRectMake(100, 230, SCREEN_WIDTH - 200, 40);
}

@end
